package com.zzq.controller;


import com.zzq.domain.search.ShootRecordSearchParament;
import com.zzq.result.SmileResult;
import com.zzq.service.PhotoRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/photographer/shoot/record")
@Api(value = "摄影师订单接口",tags = {"摄影师订单接口"})
@RestController
public class ShootRecordController {

    @Autowired
    private PhotoRecordService photoRecordService;


    @PostMapping("/list")
    @ApiOperation("获取摄影师订单列表")
    public SmileResult list(@RequestBody ShootRecordSearchParament searchParament){
        SmileResult recordList = photoRecordService.getRecordList(searchParament);
        return recordList;
    }

}
